ga.core.selection
Interface ISelector<T extends IIndividual<T>>

Type Parameters:
T - The generic type of individuals.
All Known Implementing Classes:
TournamentSelector

public interface ISelector<T extends IIndividual<T>>

Interface for an individual selector.

Since:
11.08.2012
Author:
Stephan Dreyer

Method Summary
 void insert(IndividualList<T> list, IPopulation<T> population, boolean useEliteStrategy)
          Inserts individuals into the population.
 IndividualList<T> select(IPopulation<T> population)
          Selects individuals from the population.
 

Method Detail

select

IndividualList<T> select(IPopulation<T> population)
Selects individuals from the population.

Parameters:
population - The population to select from.
Returns:
The selected individuals.
Since:
11.08.2012

insert

void insert(IndividualList<T> list,
            IPopulation<T> population,
            boolean useEliteStrategy)
Inserts individuals into the population.

Parameters:
list - The individuals to insert.
population - The population to insert to.
useEliteStrategy - Use the elite strategy if true. That will prevent the elite from being replaced during insertion.
Since:
11.08.2012